@import './handle.scss';

$black10: rgba(0, 0, 0, 0.1);

$black50: rgba(0, 0, 0, 0.5);

$black70: rgba(0, 0, 0, 0.7);

$black80: rgba(0, 0, 0, 0.8);

@mixin ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@mixin button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  @include font_color('fontColor4');
  @include border('border1');
  @include background_color('bgColor4');
  border-radius: 7px;
  cursor: pointer;
}

@mixin bar-button {
  position: relative;
  @include v-center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  cursor: pointer;
  /deep/.svg-icon {
    fill: #ffffff;
  }
  &:hover {
    /deep/.svg-icon {
      fill: #ff9900;
    }
  }
  &.disabled {
    cursor: not-allowed;
  }
}

@mixin h-center {
  display: flex;
  align-items: center;
}

@mixin v-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

@mixin flex-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@mixin flex-col2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@mixin flex4 {
  @include h-center;
  justify-content: space-between;
}

.flex {
  @include h-center;
}

.flex2 {
  @include v-center;
}

.flex3 {
  @include flex-col2;
}

@mixin scroll-bar {
  /*滚动条*/
  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    // background-color: #f5f5f5;
    background-color: transparent;
  }
  /*定义滚动条的轨道，内阴影及圆角*/
  &::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    // background-color: #f5f5f5;
    background-color: transparent;
  }
  /*定义滑块，内阴影及圆角*/
  &::-webkit-scrollbar-thumb {
    /*width: 10px;*/
    height: 20px;
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: transparent;
    // background-color: rgb(200, 200, 200);
    &:hover {
      // background-color: rgb(140, 140, 140);
      background-color: transparent;
    }
  }
}

@mixin ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 公共组件--选择用户组件 */
[data-theme='dark'] .organize-box-t {
  .organize-tree-area {
    border-top-color: #333333 !important;
    .ivu-tree-title {
      color: #e6e6e6;
      &:hover {
        background: rgba(255, 166, 0, 0.1);
      }
    }
    .ivu-tree-title-selected {
      background: rgba(255, 166, 0, 0.1);
    }
  }
  .role-section {
    section {
      .role-btns {
        border-color: #333333;
      }
    }
  }
  .selected-col {
    .selected-item {
      border-color: #333333;
    }
  }
}
